<%@ page language="java" pageEncoding="UTF-8" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

    <title>AmazingBook</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->

</head>

<body>

<table width="800" width="80%" align="center">

    <tr>
        <td width="75%" height="15" valign="top">

            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr style="width: 551px; ">
                    <td width="100%">
                        <div align="center">
                            <br><%@include file="../top.jsp" %><br>
                        </div>
                    </td>
                </tr>
            </table>

            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr style="width:551px">

                    <td width="100%">
                        <div align="left">
                            <table>
                                <tr>
                                    <td colspan="6">读者留言</td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <hr size="1" noshade width="100%">
                                    </td>

                                </tr>

                                <tr>
                                    <td width="10%">留言日期</td>
                                    <td width="10%">留言人</td>
                                    <td width="15%">主题</td>
                                    <td width="25%">内容</td>
                                    <td width="10%">处理日期</td>
                                    <td width="30%">处理意见</td>
                                </tr>

                                <s:iterator value="#session.notes" var="order">
                                    <tr>
                                        <td colspan="6">
                                            <hr size="1" noshade width="100%">
                                        </td>

                                    </tr>
                                    <tr>
                                        <td><s:property value="#order.date1"/></td>
                                        <td><s:property value="#order.userid"/></td>
                                        <td><s:property value="#order.subject"/></td>
                                        <td><s:property value="#order.context"/></td>
                                        <td><s:property value="#order.date2"/></td>
                                        <td><s:property value="#order.advice"/></td>

                                    </tr>
                                </s:iterator>

                            </table>
                        </div>
                    </td>
                <tr>
                    <td colspan="2">
                        <div align="center">

                            <s:if test="#session.loginState == 1">
                                <form action="<%=path%>/notes/NotesAction_addNote.action"
                                      method="post">
                                    <div style="text-align:left">
                                        <br> <input name="userid" type="hidden"
                                                    value="<s:property value="#session.loginUserid"/>"><span>主题：</span>
                                    </div>
                                    <textarea align="center" name="subject" cols="70" rows="1"
                                              style="width:100%"></textarea>
                                    <br>

                                    <div style="text-align:left">
                                        <span>请留言：</span><br>
                                    </div>
                                    <textarea align="center" name="context" cols="70" rows="10"
                                              style="width:100%"></textarea>
                                    <br> <input name="submit" type="submit" value=" 留言 "/>
                                </form>
                            </s:if>
                            <s:else>
                                <br>
                                您还没有登录，请 <a href="<%=path%>/login/login.jsp">登录 </a>!
                            </s:else>


                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <br><%@include file="/bottom.jsp" %>
                    </td>
                </tr>
            </table>
    </tr>
</table>

</body>
</html>
